package com.proj.dao;

import com.proj.bean.Order;
import com.proj.bean.Orderaddress;
import com.proj.bean.Orderinfo;
import com.proj.bean.Useraddress;
import com.proj.util.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface OrderDao {

    int addOrder(@Param("order") Order order);

    int addOrderInfo(@Param("order") Order order);

    int addOrderAddress(@Param("order") Order order);

    int OrderDelCart(@Param("userid")int userid);

    List<Order> easyOrder(@Param("userid")int userid);

    List<Order> allOrder(@Param("page") Page page,@Param("text") String text);

    int allOrdercount(@Param("text") String text);

    Order getMoneyByOrderid(@Param("orderid") int orderid);

    int zhifu(@Param("orderid")int orderid);

    int send(@Param("orderid")int orderid);

    int shouhuo(@Param("orderid")int orderid);

    int jieshu(@Param("orderid")int orderid);

    Useraddress getAddress(@Param("userid") int userid);

    int overdueOrdersCancelled();

    List<Orderinfo> roseinfos();

}
